package com.ccrfid.rmc6.repository.business.visitroom;

import com.ccrfid.rmc6.entity.business.visitroom.RoomDutyVisitorEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface RoomDutyVisitorRepository extends Repository<RoomDutyVisitorEntity, Long> {
    //
    RoomDutyVisitorEntity getByOrgIdAndPersonnelId(Long orgId, Long personnelId);
    //
    List<RoomDutyVisitorEntity> getAllByOrgId(Long orgId);
    //
    RoomDutyVisitorEntity save(RoomDutyVisitorEntity entity);
    //
    void deleteById(Long id);
    //
    void delete(RoomDutyVisitorEntity entity);
    //
    void deleteByOrgIdAndPersonnelId(Long orgId, Long personnelId);
    //
    boolean existsByOrgIdAndPersonnelId(Long orgId, Long personnelId);
}
